package com.hl.ruoyicsmshop.mapper;

import java.util.List;
import com.hl.ruoyicsmshop.domain.DoorsillActivityGoods;

/**
 * 满额活动商品Mapper接口
 * 
 * @author ruoyi
 * @date 2025-08-06
 */
public interface DoorsillActivityGoodsMapper 
{
    /**
     * 查询满额活动商品
     * 
     * @param daId 满额活动主键
     * @return 满额活动商品集合
     */
    public List<DoorsillActivityGoods> selectDoorsillActivityGoodsByDaId(Integer daId);

    /**
     * 查询满额活动商品列表
     * 
     * @param doorsillActivityGoods 满额活动商品
     * @return 满额活动商品集合
     */
    public List<DoorsillActivityGoods> selectDoorsillActivityGoodsList(DoorsillActivityGoods doorsillActivityGoods);

    /**
     * 根据商品ID查询满额活动
     * 
     * @param goodsId 商品ID
     * @return 满额活动商品集合
     */
    public List<DoorsillActivityGoods> selectDoorsillActivityGoodsByGoodsId(Integer goodsId);

    /**
     * 新增满额活动商品
     * 
     * @param doorsillActivityGoods 满额活动商品
     * @return 结果
     */
    public int insertDoorsillActivityGoods(DoorsillActivityGoods doorsillActivityGoods);

    /**
     * 批量新增满额活动商品
     * 
     * @param doorsillActivityGoodsList 满额活动商品集合
     * @return 结果
     */
    public int batchInsertDoorsillActivityGoods(List<DoorsillActivityGoods> doorsillActivityGoodsList);

    /**
     * 修改满额活动商品
     * 
     * @param doorsillActivityGoods 满额活动商品
     * @return 结果
     */
    public int updateDoorsillActivityGoods(DoorsillActivityGoods doorsillActivityGoods);

    /**
     * 删除满额活动商品
     * 
     * @param daId 满额活动主键
     * @return 结果
     */
    public int deleteDoorsillActivityGoodsByDaId(Integer daId);

    /**
     * 批量删除满额活动商品
     * 
     * @param daIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDoorsillActivityGoodsByDaIds(Integer[] daIds);

    /**
     * 删除指定商品的满额活动关联
     * 
     * @param daId 满额活动主键
     * @param goodsId 商品ID
     * @return 结果
     */
    public int deleteDoorsillActivityGoodsByDaIdAndGoodsId(Integer daId, Integer goodsId);
}
